package com.sxpi.zixun.auto;

import org.pug.generator.GeneratorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @Author: 董伟豪
 * @Date: 2022/8/24 8:45
 */
@Component
public class GeneratorCommand implements CommandLineRunner {

    @Autowired
    private GeneratorService generatorService;

    /**
     * 生成文档
     * @param args
     * @throws Exception
     */
    @Override
    public void run(String... args) throws Exception {
        // generatorService.createApi("com.sxpi.zixun.controller","D://","api.html");
        System.out.println("HelloWorld");
    }
}
